// 防抖函数
let debounce = function(fn){
    let timer = null;
    return function(){
        clearTimeout(timer)
        timer = setTimeout(function(){
            fn() //业务
        },500)
    }
}
export default debounce;